// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.java.codeInspection;

import com.intellij.JavaTestUtil;
import com.intellij.codeInspection.ReassignedVariableInspection;
import com.intellij.testFramework.JavaInspectionTestCase;

public class ReassignedVariableInspectionTest extends JavaInspectionTestCase {

  private final ReassignedVariableInspection myTool = new ReassignedVariableInspection();
  
  @Override
  protected String getTestDataPath() {
    return JavaTestUtil.getJavaTestDataPath() + "/inspection/reassigned";
  }

  private void doTest() {
    doTest(getTestName(true), myTool);
  }

  public void testReassignedParameter() {
    doTest();
  }

  public void testReassignedLocal() {
    doTest();
  }
}
